package com.fengwei.form.MapForObject;

import com.fengwei.util.RuntimeUtil;

import java.lang.reflect.Field;
import java.util.Map;

public class MapForObject {
    private String reqdate;
    private String reqtime;
    private String msgtoken;
    private String joininstid;
    private String joininstssn;
    private String sign;
    private Object hata;
    private Object data;
    private Object oprdata;
    private String provinceowned;

    public Object getHata() {
        return hata;
    }
    public void setHata(Object hata) {
        this.hata = hata;
    }
    public String getJoininstid() {
        return joininstid;
    }

    public void setJoininstid(String joininstid) {
        this.joininstid = joininstid;
    }

    public String getJoininstssn() {
        return joininstssn;
    }

    public void setJoininstssn(String joininstssn) {
        this.joininstssn = joininstssn;
    }

    public String getReqdate() {
        return reqdate;
    }

    public void setReqdate(String reqdate) {
        this.reqdate = reqdate;
    }

    public String getReqtime() {
        return reqtime;
    }

    public void setReqtime(String reqtime) {
        this.reqtime = reqtime;
    }

    public String getMsgtoken() {
        return msgtoken;
    }

    public void setMsgtoken(String msgtoken) {
        this.msgtoken = msgtoken;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Object getOprdata() {
        return oprdata;
    }

    public void setOprdata(Object oprdata) {
        this.oprdata = oprdata;
    }

    public String getProvinceowned() {
        return provinceowned;
    }

    public void setProvinceowned(String provinceowned) {
        this.provinceowned = provinceowned;
    }

    public MapForObject(Map<String, Object> map) throws IllegalAccessException {
        Field[] fields = RuntimeUtil.getFields(this);
        for (Field field : fields) {
            field.setAccessible(true);
            field.set(this, map.get(field.getName()));
        }
    }

    public MapForObject() {
    }
}
